<template>
  <div class="axios">
    <div v-for="(item, index) in list" :key="index">
      <p>{{ item }}</p>
    </div>
  </div>
</template>
<script>
import axios from 'axios'
export default {
  name: '',
  data() {
    return {
      list: []
    }
  },
  methods: {
    async getList() {
      let { data: res } = await axios.get(
        'http:///web17.oss-cn-hangzhou.aliyuncs.com/list.json'
      )
      this.list = res
    }
  },
  created() {
    this.getList()
  }
}
</script>
